package org.jsbd.boss.dao.impl;

import java.util.HashMap;
import java.util.Map;

import org.jsbd.boss.dao.IMarkStatRecordDao;
import org.jsbd.boss.domian.MarkStatRecordBean;
import org.springframework.stereotype.Repository;

@Repository("markStatRecordDao")
public class MarkStatRecordDaoImpl extends CrackBaseDao implements IMarkStatRecordDao{

	@Override
	public Map<String, Object> getNewTaskPageList(MarkStatRecordBean markStatRecordBean) {
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("total", super.queryForCount("qy_mark_stat_record.select_new_task_count", markStatRecordBean));
		results.put("rows", super.queryForList("qy_mark_stat_record.select_new_task_list", markStatRecordBean));
		return results;
	}

	@Override
	public Map<String, Object> getRetentTaskPageList(MarkStatRecordBean markStatRecordBean) {
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("total", super.queryForCount("qy_mark_stat_record.select_retent_task_count", markStatRecordBean));
		results.put("rows", super.queryForList("qy_mark_stat_record.select_retent_task_list", markStatRecordBean));
		return results;
	}

	@Override
	public Map<String, Object> get1RetentTaskPageList(MarkStatRecordBean markStatRecordBean) {
		Map<String, Object> results = new HashMap<String, Object>();
		results.put("total", super.queryForCount("qy_mark_stat_record.select_retent1_task_count", markStatRecordBean));
		results.put("rows", super.queryForList("qy_mark_stat_record.select_retent1_task_list", markStatRecordBean));
		return results;
	}

}
